etags-regen--tags-generate: Handle spaces in project root name
authorEli Zaretskii <eliz@gnu.org>
Thu, 11 Apr 2024 17:09:49 +0000 (20:09 +0300)
committerDmitry Gutov <dmitry@gutov.dev>
Thu, 11 Apr 2024 17:10:18 +0000 (20:10 +0300)
* lisp/progmodes/etags-regen.el (etags-regen--tags-generate):
Quote the tags file name (bug#70329).

lisp/progmodes/etags-regen.el

index 6cd78d3577af543331ea81195f345b4391fa130f..02d666ceff7d314c8080486d0a641b1f3c10d048 100644 (file)
@@ -279,7 +279,7 @@ File extensions to generate the tags for."
                                      " ")
                           ;; ctags's etags requires '-L' for stdin input.
                           (if ctags-p "-L" "")
-                          tags-file)))
+                          (shell-quote-argument tags-file))))
     (with-temp-buffer
       (mapc (lambda (f)
               (insert f "\n"))